import request from '@/utils/request'

// 创建商品名称
export function createProductLevelThree(data) {
  return request({
    url: '/market/product-level-three/create',
    method: 'post',
    data: data
  })
}

// 更新商品名称
export function updateProductLevelThree(data) {
  return request({
    url: '/market/product-level-three/update',
    method: 'put',
    data: data
  })
}

// 删除商品名称
export function deleteProductLevelThree(id) {
  return request({
    url: '/market/product-level-three/delete?id=' + id,
    method: 'delete'
  })
}

// 获得商品名称
export function getProductLevelThree(id) {
  return request({
    url: '/market/product-level-three/get?id=' + id,
    method: 'get'
  })
}

// 获得商品名称分页
export function getProductLevelThreePage(params) {
  return request({
    url: '/market/product-level-three/page',
    method: 'get',
    params
  })
}
export function getProductLevelThreeList() {
  return request({
    url: '/market/product-level-three/list',
    method: 'get',
  })
}
// 导出商品名称 Excel
export function exportProductLevelThreeExcel(params) {
  return request({
    url: '/market/product-level-three/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
